package teamGiga.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import teamGiga.dao.CartDao;
import action.servlet.ActionForWard;

public class BuyAction extends Action{

	private String path;
	private boolean redirect;
	
	
	
	public BuyAction() {
		super();
	}

	public BuyAction(String path, boolean redirect) {
		super();
		this.path = path;
		this.redirect = redirect;
	}

	@Override
	public ActionForWard execute(HttpServletRequest request,
			HttpServletResponse response) {
		// TODO Auto-generated method stub
		
		try {
			request.setAttribute("Vod", CartDao.selectCart());			
		} catch (Exception e) {
			// TODO: handle exception
		}
		
		
		return new ActionForWard(path,redirect);
	}
	
	



	
	
}
